package com.dayu.design.common;

import com.dayu.design.创建型.抽象工厂模式.AbstractFactory;
import com.dayu.design.创建型.抽象工厂模式.Action;
import com.dayu.design.创建型.抽象工厂模式.ActionFactory;

/**
 * @author dayu
 * @create 2023-12-01 14:28
 */
public enum FactoryEnum {
    ACTION(ActionFactory.class);
    Class<? extends AbstractFactory> clazz;

    FactoryEnum(Class<? extends AbstractFactory> clazz) {
        this.clazz = clazz;
    }

    public Class<? extends AbstractFactory> getClazz() {
        return clazz;
    }
}
